package com.mazaiting.websocket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * Websocket 配置
 *
 * @author mazaiting
 * @create_time 2022/4/19 17:37
 */
@Configuration
public class WebSocketConfig {

    /**
     * 服务切入点
     *
     * @return 服务切入点
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
